﻿// <copyright file="Enum1.cs" company="Magenic">
//  Copyright © Magenic. All Rights Reserved.
// </copyright>

using System.Xml.Linq;
using System.Linq;
namespace T4Demo2
{
	/// <summary>
	/// Enum1
	/// </summary>
	/// <remarks>
	/// <para>
	/// This enumeration represents special values for Enum1 column 
	/// of the ??? database table. T4 code generation template Enum1View.tt
	/// is used to generate a SQL view in Enum1View.sql based on enumerated
	/// values defined here. 
	/// </para>
	/// <para>
	/// Use this view to access values from this enumeration in T-SQL code. For example:
	/// </para>
	/// <example>
	/// declare @Item1 int
	/// select @Item1 = Item1 from enum.Enum1
	/// </example>
	/// </remarks>
	public enum Enum1
	{
		Item1,
		Item2
	}
	public class blah
	{
		public string blah2()
		{
			XDocument d = XDocument.Load("");
			d.Descendants("book").Elements("author").Select(e => (string)e.Attribute("Name"));
			return "";
		}
	}
}
